<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-02 18:44:33
 * @Last Modified time: 2023-02-09 14:47:50
 */

namespace app\common\enum\store;

use frank\base\BaseEnum;
use app\common\enum\store\order\DeliveryStatusEnum;
use app\common\enum\store\order\ReceiptStatusEnum;
use app\common\enum\store\order\ExtractStatusEnum;

/**
 * 枚举类
 * Class DeliveryTypeEnum
 * @package app\common\enum\store
 */
class DeliveryTypeEnum extends BaseEnum
{
    const EXPRESS = 'express';

    const SELFMENTION = 'slef_mention';

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::EXPRESS => [
                'name' => '快递',
                'value' => self::EXPRESS,
            ],
            self::SELFMENTION => [
                'name' => '到店自提',
                'value' => self::SELFMENTION,
            ],
        ];
    }


    /**
     * 获取枚举数据
     */
    public static function describe()
    {
        return [
            self::EXPRESS => [
                'delivery' => DeliveryStatusEnum::data(),
                'receipt'=> ReceiptStatusEnum::data(),
            ],
            self::SELFMENTION => [
                'delivery' => ExtractStatusEnum::data(),
                'receipt'=> ReceiptStatusEnum::data(),
            ],
        ];
    }
}
